import request from '@/utils/request.js'

const base_url = 'site/order/orderInfo'

export default{
    submitOrder(scheduleId,patientId){
        return request({
            url:`${base_url}/auth/saveOrder/${scheduleId}/${patientId}`,
            method:'post'
        })
    },
    getPageList(current,size,searcheObj){
        return request({
            url:`${base_url}/auth/findOrderInfoPage/${current}/${size}`,
            method:'post',
            data:searcheObj
        })
    },
    getStatusList(){
        return request({
            url:`${base_url}/auth/getStatusList`,
            method:'get'
        })
    },
    getOrders(orderId){
        return request({
            url:`${base_url}/auth/getOrderById/${orderId}`,
            method:'get'
        })
    }

}